//
//  NYVideoLevalMsgRequest.m
//  NiuWaJiaoYu
//
//  Created by MinLison on 2018/1/19.
//  Copyright © 2018年 niuwaketang. All rights reserved.
//

#import "NYVideoLevalMsgRequest.h"

@implementation NYVideoLevalMsgRequest

+ (instancetype)requestWithType:(NYExamineRequestStatus)status param:(NSDictionary *)param {
        NYVideoLevalMsgRequest *request = [super requestWithParams:param];
        request.status = status;
        return request;
}

- (NSString *)url {
        switch (_status) {
                case NYExamineRequestStatusCup:{ //杯赛
                        
                        return @"/cup/message";
                        break;
                }
                case NYExamineRequestStatusChoose:{ //选课
                        
                        return @"/video/message";
                        break;
                }
                default:
                        break;
        }
        return @"/video/message";
}
- (NetworkRequestType)requestType {
        return NetwrokRequestTypePOST;
}
- (NSMutableDictionary *)defaultParams
{
        return @{
                 kRequestKeyUser_ID : NOT_NULL_STRING_DEFAULT_EMPTY(NYUserManager.user_id),
                 kRequestKeyChannel : @(NYUserManager.channelID),
                 kRequestKeyLoginCode : NOT_NULL_STRING_DEFAULT_EMPTY(NYUserManager.logincode),
                 }.mutableCopy;
}

@end
